package com.ruoyi.edu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程视频业务对象 edu_video
 *
 * @author ruoyi
 * @date 2022-08-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EduVideoBo extends BaseEntity {

    /**
     * 视频ID
     */
    @NotBlank(message = "视频ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 课程
     */
    @NotBlank(message = "课程不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseId;

    /**
     * 章节
     */
    @NotBlank(message = "章节不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterId;

    /**
     * 小节
     */
    @NotBlank(message = "小节不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 视频
     */
    @NotBlank(message = "视频不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoSourceId;

    /**
     * 视频名称
     */
    @NotBlank(message = "视频名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoOriginalName;

    /**
     * 排序字段
     */
    @NotBlank(message = "排序字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sort;

    /**
     * 是否收费
     */
    @NotBlank(message = "是否收费不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isFree;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
